package opensocial4gwt;


public final class Url extends BaseJsObject {
	private static enum Field {
		TYPE, LINK_TEXT, ADDRESS;

		public native String value() /*-{
			return $wnd.opensocial.Url.Field[this.@opensocial4gwt.Url.Field::name()()];
		}-*/;
	}
	
	protected Url() {
	}
	
	public String getType() {
		return getFieldString(Field.TYPE.value());
	}
	
	public String getLinkText() {
		return getFieldString(Field.LINK_TEXT.value());
	}
	
	public String getAddress() {
		return getFieldString(Field.ADDRESS.value());
	}
}
